﻿
using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace Yoozoo.Gameplay.City.AI.Node
{
    [Category("Ggame/City")]
    public class NPCStartStopMove : AIBaseNode
    {
        [RequiredField]
        public BBParameter<bool> isMoving;

        protected override void OnExecute()
        {
            if (isMoving.value)
			{
                _entity.splineController.Play();

            }
			else
			{
                _entity.splineController.Pause();
			}
            
            EndAction(true);
        }
    }
}
